<%-- 
    Document   : DangNhap
    Created on : Jun 4, 2014, 2:56:37 AM
    Author     : Master
--%>

<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page import="Controller.*"%>
<%@page import="Model.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
    controller_TaiKhoanKH taiKhoanKH = new controller_TaiKhoanKH();
    model_TaiKhoanKH tk = new model_TaiKhoanKH();
    
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    Date d = new Date();
    
    tk.setCmnd(request.getParameter("cmnd"));
    tk.setMatkhau(request.getParameter("matkhau"));
    tk.setNgaytao(sdf.format(d.getTime()));
    tk.setTentk(request.getParameter("taikhoan"));
    
    taiKhoanKH.Them_TaiKhoan(tk);
    
    response.sendRedirect("../index.jsp");
%>
